import VueRouter from 'vue-router'
import home from './components/home.vue'
import  newsList from './components/news/newsList.vue'
import search from './components/search.vue'
import user from './components/user.vue'
import shop from './components/shop.vue'
import newsDetail from './components/news/detail/newsDetail.vue'
let router = new VueRouter({
    routes:[
        {path:"/",redirect:"/home"},
        {path:"/home",component:home},
        {path:"/home/newsList",component:newsList},
        {path:"/home/newsList/detail/:title",component:newsDetail},
        {path:"/search",component:search},
        {path:"/shop",component:shop},
        {path:"/user",component:user}
    ],
    linkActiveClass:"mui-active"
});
export  default  router;